/**
 * @Project Name:blog-business-service
 * @Package Name:cn.hoofungson.blog.business.service.interfaces.client.article
 * @Since JDK 1.8
 */

package cn.hoofungson.blog.business.service.interfaces.client.article;

import cn.hoofungson.blog.business.service.interfaces.domain.dto.article.ArticleDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @Description: ArticleClient
 * @Author 胡松 hoofungson@163.com
 * @Date 2020-03-24 13:30
 * @Version V1.0
 */
@FeignClient(value = "article-client")
public interface ArticleClient {

    /**
     * 说Hello
     * **/
    @GetMapping("/article")
    void sayHello(@RequestParam String username);

    /**
     * 新增文章
     * **/
    @PostMapping("/article")
    void add(@RequestBody ArticleDTO articleDTO);
}
